package com.xiangming.demo.service.imp;

import com.xiangming.demo.entity.FileData;
import com.xiangming.demo.mapper.MetaMapper;
import com.xiangming.demo.service.MetaService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author wxm
 * @data 2021/11/13
 */
@Service
public class MetaServiceImpl implements MetaService {
    /**
     *     获取日志
     */
    private final Logger logger = LoggerFactory.getLogger(MetaServiceImpl.class);

    /**
     * 获取文件元数据
     */
    @Resource
    MetaMapper metaMapper;

    @Override
    public FileData selectAll(String uuid) {
        FileData file = metaMapper.selectAll(uuid);
        logger.info("-----info------获取文件元数据成功");
        return file;

    }
}
